package net.pulseproject.commons.misc.preferences;

class PreferencesStringField extends PreferencesField<String> {
	
	public PreferencesStringField(final String key, final String defaultValue) {
		super(key, defaultValue);
	}
	
	@Override
	protected final String getValue(final PreferencesDataAccessor preferencesData) {
		return preferencesData.getString(this.getKey(), this.getDefaultValue());
	}

	@Override
	protected final void setValue(final PreferencesDataAccessor preferencesData, final String value) {
		preferencesData.setString(this.getKey(), value);
	}
}
